import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state:{
        meeting:{}
    },
    mutations:{
        update(state,newData){
            console.log(JSON.stringify(state.meeting));
            state.meeting = newData
            console.log(JSON.stringify(state.meeting));
        }
    },
    actions:{
        updateAction(context,data){
            console.log(JSON.stringify(data));
            
            context.commit("update",data)
        }
    }

})

export default store